package com.tamtamy.jttamobile.data;

import java.util.ArrayList;
import java.util.Date;


/**
 * Handles the response to URI calls for  
 * <a href="https://tamtamy.reply.it/wiki/API#Content_.28link.29_detail">Content (link)</a>
 * <br>
 * <b>NOTE:</b>It's required to know "a priori" that it will be called a content of type link
 *  
 * @author Omar "0m4r" Adobati 
 * @version %I%, %G% 
 * 
 */
public class ContentLink extends Content{

	private static final long serialVersionUID = -4562093075834248375L;

	protected String contentUrl;
	
	public ContentLink() {
		super();
		this.thumbnailPresent = false;
		this.thumbnailSmall = null;
		this.thumbnailRect = null;
		this.thumbnailMedium = null;
		this.thumbnailOriginal = null;
		this.contentUrl = null;
		this.contentType = null;
		this.contentTypeCategory = null;
		this.size = null;
	}

	public ContentLink(long id, String title, String url, String description,
			String permission, String discussionPermission,
			Date creationDate, Date updateDate, String userID,
			String favouriteCounter, String highlight, String numberOfComments,
			String rateEnabled, ArrayList<String> tags, String rate,
			String ratesNumber, String languageCode,
			ArrayList<String> commentList, String views, String downloads,
			String network, boolean thumbnailPresent, String thumbnailSmall,
			String thumbnailRect, String thumbnailMedium,
			String thumbnailOriginal, String contentUrl, String contentType,
			String contentTypeCategory, String size) {

		super(id, title, contentUrl, description, permission, discussionPermission, creationDate, updateDate, userID, favouriteCounter, highlight, numberOfComments, rateEnabled, tags, rate, ratesNumber, languageCode, commentList, views, downloads, network, thumbnailOriginal, contentTypeCategory, contentType, contentTypeCategory, thumbnailSmall, thumbnailMedium, thumbnailRect, thumbnailPresent);

		this.thumbnailPresent = thumbnailPresent;
		this.thumbnailSmall = thumbnailSmall;
		this.thumbnailRect = thumbnailRect;
		this.thumbnailMedium = thumbnailMedium;
		this.thumbnailOriginal = thumbnailOriginal;
		this.contentUrl = contentUrl;
		this.contentType = contentType;
		this.contentTypeCategory = contentTypeCategory;
		this.size = size;
	}

	public String getContentUrl() {
		return contentUrl;
	}

	public void setContentUrl(String contentUrl) {
		this.contentUrl = contentUrl;
	}

	public void setSize(String size) {
		this.size = size;
	}

	@Override
	public String toString() {
		return "ContentLink [thumbnailPresent=" + thumbnailPresent
		+ ", thumbnailSmall=" + thumbnailSmall + ", thumbnailRect="
		+ thumbnailRect + ", thumbnailMedium=" + thumbnailMedium
		+ ", thumbnailOriginal=" + thumbnailOriginal + ", contentUrl="
		+ contentUrl + ", contentType=" + contentType
		+ ", contentTypeCategory=" + contentTypeCategory + ", size="
		+ size + ", id=" + id + ", title=" + title + ", url=" + url
		+ ", description=" + description + ", permission=" + permission
		+ ", discussionPermission=" + discussionPermission
		+ ", creationDate=" + creationDate + ", updateDate="
		+ updateDate + ", userID=" + userID + ", favouriteCounter="
		+ favouriteCounter + ", highlight=" + highlight
		+ ", numberOfComments=" + numberOfComments + ", rateEnabled="
		+ rateEnabled + ", tags=" + tagList + ", rate=" + rate
		+ ", ratesNumber=" + ratesNumber + ", languageCode="
		+ languageCode + ", commentList=" + commentsList + ", views="
		+ views + ", downloads=" + downloads + ", network=" + network
		+ ", descriptionPlainText=" + descriptionPlainText
		+ ", permalink=" + permalink + ", modCount=" + modCount + "]";
	}

}

